#!/bin/sh

# kextunload /System/Library/Extensions/IOACTIV.kext
rm -r /System/Library/Extensions/IOACTIV.kext
rm -r /System/Library/PreferencePanes/ACTIVboard.prefPane
rm -r /System/Library/StartupItems/ACTIVstartup
rm -r /Library/Receipts/ACTIVboard.pkg
rm -r "/Library/Receipts/ACTIV board Installer.pkg"
rm -r "/Library/Receipts/ACTIV board Driver.pkg"
rm -r "/Applications/ACTIVboard Uninstall.app"
rm /Users/Shared/ACTIVstartup.log
rm /Users/Shared/Library/Preferences/com.Promethean.preferences.ACTIVboard.calibration
rm -rdf /Applications/Promethean/ac3register.app
rm -rdf /Applications/Promethean/activmgr.app
rm -rdf /Applications/Promethean/activmonitor.app
rm -rdf /Applications/Promethean/activremote.app
rm -rdf /Applications/Promethean/Drivers
rm -rdf /usr/share/promethean/languages
rm /usr/bin/activconsole
rm /usr/lib/libactivboardex.dylib
rm "/Applications/Promethean/ACTIVdriver ReadMe.txt"

# VAD: Shared/Library/Preferebces folder will be removed if empty
rmdir /Users/Shared/Library/Preferences

rm -R "/System/Library/Contextual Menu Items/ACTIVboard CM.plugin"

#VAD: disabling if Jaguar
if [ -e /System/Library/PreferencePanes/Ink.prefPane/Contents/MacOS ]; then
	cd /System/Library/PreferencePanes/Ink.prefPane/Contents
	mv -f .Info.old Info.plist
	rm ~/Library/Caches/com.apple.preferencepanes.cache
fi
